package core.constants;

public class Constant {
    public final static String LOGIN_USER = "login_token: ";
    public final static Long TIME_OUT = 300L; // minutes
    public final static Long LIMIT_TIME_OUT = 60L; // minutes
    public final static String SPLIT_SEM = ";";

    public static final Byte TRUE = 1;  // 1: true 已发布
    public static final Byte FALSE = 0; // 0: false 未发布

    public static final String PHONE_CODE_KEY = "phone_code:";
    public static final String CODE_TIMES_KEY = "code_times:";

    public static final String ING_EXAM_LIST_KEY = "ing_exam_list"; // 正在进行的竞赛
    public static final String ED_EXAM_LIST_KEY = "ed_exam_list"; // 已结束的竞赛
    public static final String EXAM_DETAIL_KEY = "exam_detail:"; // 竞赛详情
    public static final String USER_EXAM_LIST = "user_exam_list:"; // 用户竞赛列表
    public static final String USER_CACHE = "user:"; // 用户缓存
    public static final String QUESTION_LIST = "question_list"; // 题目列表顺序
    public static final String EXAM_QUESTION_LIST = "exam_question_list:"; // 竞赛题目列表
    public static final Long USER_EXP = 10L; // 用户过期时间
    public static final String USER_MESSAGE_LIST = "user_message_list:";
    public static final String MESSAGE_DETAIL = "message_detail:";
    public static final String EXAM_RANK_LIST = "exam_rank_list:"; // 竞赛排名列表



    public static final String TOP_RANK_LIST = "top_rank_list"; // 热题排行榜

    public static final String USER_ID = "user_id:"; // 用户id 用于 ThreadLocal


    public static final String USER_UPLOAD_TIMES_KEY = "USER_UPLOAD_TIMES:";

    public static final String HEAD_IMAGE_URL = "https://rht-oj-test.oss-cn-chengdu.aliyuncs.com/oj/images/";

    public static final String JUDGE_SERVICE = "oj-judge";
    public static final String UNDERLINE_SEPARATOR = "_";
    public static final String UTF8 = "UTF-8";
    public static final Long SYSTEM_USER = 1L;
}
